#include <stdio.h>
int main ()
{
	double count=0,ave,sum=0,n,i,s;
	scanf("%lf",&n);
	if(n==0)
	{
		printf("average = 0.0\ncount = 0");
	}
	else{
	for(i=0;i<n;i++)
	{
		scanf("%lf",&s);
		if(s>=60)
		{
			count++;
		}
		sum+=s;
	}
	ave=sum/n;
	printf("average = %.1f\ncount = %.0f",ave,count);
}
}
